package com.yic.module.base.convert.supplier;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.base.api.supplier.dto.SupplierRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.yic.module.base.controller.admin.supplier.vo.*;
import com.yic.module.base.dal.dataobject.supplier.SupplierDO;

/**
 * 供应商信息 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface SupplierConvert {

    SupplierConvert INSTANCE = Mappers.getMapper(SupplierConvert.class);

    SupplierDO convert(SupplierCreateReqVO bean);

    SupplierDO convert(SupplierUpdateReqVO bean);

    SupplierRespVO convert(SupplierDO bean);

    List<SupplierRespVO> convertList(List<SupplierDO> list);

    PageResult<SupplierRespVO> convertPage(PageResult<SupplierDO> page);

    List<SupplierExcelVO> convertList02(List<SupplierDO> list);

    List<SupplierSimpleRespVO> convertList03(List<SupplierDO> list);

    SupplierRespDTO convert01(SupplierDO supplier);

}
